{layout name="public:layout" /}
<table class="table table-hover">
    <thead class="thead-dark">
    <tr class="text-center">
        <td>ID</td>
        <td>用户名</td>
        <td>邮箱</td>
        <td>手机号</td>
        <td>注册时间</td>
        <td>状态</td>
        <td colspan="2">操作</td>
    </tr>
    </thead>
    <thbody>
        {volist name="$userList" id="user"}
        <tr class="text-center">
            <td>{$user.id}</td>
            <td>{$user.name}</td>
            <td>{$user.email}</td>
            <td>{$user.mobile}</td>
            <td>{$user.create_time}</td>
            <td>{$user.status}</td>
            {eq name="$user.id" value="$Think.session.admin_id"}
            <td><a href="{:url('user/useredit')}">编辑</a></td>
            {/eq}
            {neq name="$user.id" value="$Think.session.admin_id"}
            <td><a href="#">删除</a></td>
            {/neq}
        </tr>
        {/volist}
    </thbody>
</table>